<?php
class Faq extends CI_Controller {
    public function __construct() {
        parent::__construct ();
        session_start ();
    }
    public function index() {
    }
    
    /**
     *
     * 查询faq类别
     *
     * @name faq_type
     * @author Eifel.Deng 2015年4月3日
     */
    public function faq_type() {
        $this->load->library ( "/faq/faq" );
        $result = $this->faq->get_faq_type ();
        echo json_encode ( $result );
    }
    public function faq_list() {
        $type_id = $this->input->get_post ( "type_id" );
        $result = $this->faq->get_faq_list ($type_id);
        echo json_encode ( $result );
    }
    
    public function faq_info(){
        $faq_id = $this->input->get_post ( "faq_id" );
        $result = $this->faq->get_faq_info ($faq_id);
        echo json_encode ( $result );
    }
}
